﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using PedidosPaquetesTuristicos.Soa_WebServices;  

namespace PedidosPaquetesTuristicos.Account
{
    public partial class Register : System.Web.UI.Page
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            //RegisterUser.ContinueDestinationPageUrl = Request.QueryString["ReturnUrl"];
        }

        protected void RegisterUser_CreatedUser(object sender, EventArgs e)
        {

        }

        protected void CreateUserButton_Click(object sender, EventArgs e)
        {
            Soa_WebServices.WebServiceRegistraCliente Registra = new WebServiceRegistraCliente();

            string Respuesta = Registra.RegistraCliente(UserName.Text , Apellido.Text, Identificacion.Text,Email.Text , Telefono.Text, Codigo.Text , Password.Text ,NroTarjeta.Text );

            if (Convert.ToInt32(Respuesta) > 0)
            {
                Response.Redirect("~/About.aspx");  
            }
        }

    }
}
